home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 79 / maccd 79.iso / multimedial / GL Tron / Source / gltron / sound_sdl.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-07-20  |  605 b   |  38 lines  |  [TEXT/CWIE]

  1. #ifndef SOUND_H
  2. #define SOUND_H
  3.  
  4. #include <SDL/SDL.h>
  5. #include <SDL/SDL_mixer.h>
  6.  
  7. int initSound();
  8. void shutdownSound();
  9.  
  10. void loadSound(char *name);
  11. void playSound();
  12. void stopSound();
  13. void deleteSound();
  14. void soundIdle();
  15.  
  16. void setMusicVolume(float volume);
  17. void setFxVolume(float volume);
  18.  
  19. void playGameFX(int fx, float volume);
  20. void playMenuFX(int fx);
  21.  
  22. void playEngine();
  23. void stopEngine();
  24.  
  25. enum game_fx { fx_engine=0, fx_crash, fx_start, fx_win, fx_lose };
  26.  
  27. enum { 
  28.   SOUND_ENGINE = 0,
  29.   SOUND_CRASH,
  30.   SOUND_START,
  31.   SOUND_WIN,
  32.   SOUND_LOSE
  33. };
  34.  
  35. enum menu_fx { fx_action=0, fx_highlight };
  36.  
  37. #endif
  38.